package com.ztman.router.common.dagger.module;

import android.app.Activity;

import com.ztman.router.common.dagger.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

/**
 * @Title:ActivityModule
 * @Package:com.ztman.router.common.dagger.module
 * @Description:
 * @Auther:YJH
 * @Email:yuannunhua@gmail.com
 * @Date:2018/5/1016:12
 */
@Module
public class ActivityModule {
    private Activity activity;
    public ActivityModule(Activity _activity){
        this.activity = _activity;
    }

    @ActivityScope
    @Provides
    Activity getActivity(){
        return activity;
    }
}
